<?php
class TipoOpcionalPatrimonioServico extends AppModel {

	var $name = 'TipoOpcionalPatrimonioServico';
	var $primaryKey = 'id_tipo_opcional_patrimonio_servico';
	var $validate = array(
		'id_patrimonio_servico' => array('notempty'),
		'id_tipo_opcional' => array('notempty'),
		'quantidade' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'TipoOpcional' => array(
			'className' => 'TipoOpcional',
			'foreignKey' => 'id_tipo_opcional',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'PatrimonioServico' => array(
			'className' => 'PatrimonioServico',
			'foreignKey' => 'id_patrimonio_servico',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>